/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background: #99bbff;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    max-width: 250px;
    height: auto;
    margin-left: 20px;
    display: inline-block;
    vertical-align: middle;
    max-height: 70px; /* adjust as per navbar height */
}

/* Navigation */
nav {
    position: relative;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    align-items: center;
}

nav ul li {
    position: relative;
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 15px;
}

/* Submenu */
nav ul li .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #99bbff;
    padding: 0;
    border: 1px solid #ddd;
    min-width: 200px;
    border-radius: 5px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    flex-direction: column;
}

nav ul li .submenu li {
    display: block;
    width: 100%;
}

nav ul li .submenu li a {
    display: block;
    text-decoration: none;
    color: white;
    font-size: 16px;
    padding: 10px 15px;
    transition: background 0.3s ease;
}

nav ul li .submenu li a:hover {
    background: #4f78c7;
    border-radius: 5px;
}

nav ul li:hover .submenu {
    display: flex;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px 15px;
    background: #4f78c7;
    color: white;
    font-size: 20px;
    border-radius: 5px;
    margin-right: 20px;
    border: none;
}

/* Responsive Dropdown Style */
@media (max-width: 768px) {
    nav {
        position: relative;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        background: #99bbff;
        border-radius: 8px;
        padding: 10px;
        position: absolute;
        top: 100%;
        right: 0;
        width: max-content;
        min-width: 200px;
        box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
        display: none;
        z-index: 999;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 8px 0;
    }

    nav ul li .submenu {
        position: relative;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
    }

    nav ul li .submenu li a {
        padding-left: 20px;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 30px 15px;
    }

    .top-footer {
        flex-direction: column;
    }
}


/* Main Content */
main {
    flex: 1;
    padding: 20px;
    text-align: center;
}

/* Contact Form */
.contact-container {
    max-width: 600px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.2);
}

.contact-container input,
.contact-container textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

.contact-container input:focus,
.contact-container textarea:focus {
    border-color: #6200ea;
    outline: none;
    box-shadow: 0px 0px 8px rgba(98, 0, 234, 0.2);
}

.contact-container button {
    background: #6200ea;
    color: white;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.contact-container button:hover {
    background: #4500b3;
}

.contact-details {
    text-align: center;
    margin-top: 20px;
}

.contact-details p {
    margin: 5px 0;
    font-size: 16px;
}

/* Hero Section */
.hero {
    background: #6200ea;
    color: white;
    padding: 50px 20px;
}

/* Footer */
.footer-container {
    display: flex;
    flex-direction: column;
    background: #99bbff;
    color: white;
    text-align: center;
    padding: 10px;
    height: auto; /* Set your fixed height */
    margin-top: auto;
}


.top-footer {
    background: #99bbff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.top-footer div {
    flex: 1;
    padding: 10px;
    text-align: center;
}

.top-footer a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: color 0.3s ease;
}

.top-footer a:hover {
    color: #f4a261;
}

.bottom-footer {
    padding: 10px;
}

/* Responsive Layout */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .submenu {
        position: relative;
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 30px 15px;
    }

    .top-footer {
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        background: #333;
        width: 100%;
        margin-top: 10px;
    }

    nav ul.show {
        display: flex;
        flex-direction: column;
    }
}

/* Containers */
.container {
    max-width: 1400px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* Typography */
h1 {
    color: #2c3e50;
}

h2 {
    color: #e67e22;
}

ul {
    text-align: left;
    margin: 20px;
    padding-left: 20px;
}

ul li {
    margin: 10px 0;
}

.contact {
    margin-top: 20px;
    font-size: 18px;
}

.contact a {
    text-decoration: none;
    color: #e74c3c;
    font-weight: bold;
}

.contact a:hover {
    text-decoration: underline;
}

/* Call to Action */
.cta {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #e67e22;
    color: white;
    font-size: 18px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.cta:hover {
    background-color: #d35400;
}

/* Banner Slider */
.bannerHome {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slider, .slide-item {
    width: 100%;
    height: 80vh;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.meta {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px;
    text-align: left;
    border-radius: 10px;
    max-width: 40%;
}

.meta p {
    font-weight: 800;
    font-size: large;
    margin-bottom: 10px;
}

/* Category List */
.category ul {
    list-style: none;
    padding: 0;
}

.category li {
    margin-bottom: 5px;
}

/* Enquiry Button */
.bt_enq button {
    background: #ff5722;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.bt_enq button:hover {
    background: #e64a19;
}

/* Box Section */
.box_section {
    width: 100%;
    float: left;
    position: relative;
    top: -70px;
}

.online_box,
.online_box_main {
    width: 100%;
    display: flex;
}

.online_box_left {
    background-color: #fefefd;
    padding: 30px;
    box-shadow: 0px 9px 15px 5px #ededed;
    border-radius: 8px;
    margin: 10px;
}

.box_right {
    width: 70%;
    padding-left: 20px;
}

.right_arrow {
    width: 50px;
    font-size: 20px;
    color: #ffffff;
    background-color: #001431;
    border-radius: 100%;
    text-align: center;
    padding: 7px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book_text {
    font-size: 16px;
    color: #e73232;
    font-weight: bold;
}

.appoinment_text {
    font-size: 20px;
    color: #001431;
    font-weight: bold;
}

.online_box_left:hover,
.online_box_left.active {
    background-color: #e73232;
}

.online_box_left:hover .book_text,
.online_box_left.active .book_text,
.online_box_left:hover .appoinment_text,
.online_box_left.active .appoinment_text {
    color: #ffffff;
}

/* Form Container */
.form-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 900px;
    min-height: 500px; /* Ensure the container height is sufficient */
    text-align: center;
    margin: auto;
    box-sizing: border-box;
    width: 100%;
}

/* Header styling for form */
.form-container h2 {
    color: #333;
}

/* Form Group Styling */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    text-align: left;
}

/* Label Styling */
.form-group label {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

/* Input and Textarea Styling */
.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    width: 100%;
    text-transform: uppercase;
}

/* Exception for certain fields */
.form-group input#pan_password,
.form-group input#email {
    text-transform: none;
}

/* Textarea height */
.form-group textarea {
    resize: vertical;
    height: 80px;
}

/* Submit Button Styling */
.form-group input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 10px;
    width: 50%; /* Adjusted width */
    text-transform: none;
    margin-top: 10px;
}

.form-group input[type="submit"]:hover {
    background-color: #45a049;
}

/* Grid Layout for Larger Screens */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Replaced `1fr` with pixel values */
    gap: 15px;
}

/* Media Query for Small Screens */
@media (max-width: 768px) {
    /* Ensure form is centered and fills width */
    .form-container {
        width: 90%;
    }

    /* Adjust grid layout to single column for mobile */
    .form-grid {
        grid-template-columns: 1fr; /* Stacks input fields vertically */
    }

    /* Adjust submit button width for small screens */
    .form-group input[type="submit"] {
        width: 80%; /* Larger button on mobile */
    }
}


/* Table */
.table-container {
    max-width: 1200px;
    margin: 20px auto;
    overflow-x: auto;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.table-container th,
.table-container td {
    padding: 12px 15px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid #ddd;
}

.table-container th {
    background: #007bff;
    color: white;
    font-size: 14px;
    text-transform: uppercase;
}

.table-container tr:nth-child(even) {
    background: #f9f9f9;
}

.table-container tr:hover {
    background: #f1f1f1;
    transition: background 0.3s;
}

/* Payment Button */
.pay-button {
    display: inline-block;
    padding: 8px 12px;
    background-color: #ccc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    cursor: not-allowed;
    transition: 0.3s ease-in-out;
    float: right;
}

.pay-button:not([disabled]):hover {
    background-color: #218838;
}

/* WhatsApp Popup */
.whatsapp-popup-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.whatsapp-button {
    background-color: #25D366;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.whatsapp-popup {
    display: none;
    background: #fff;
    color: #000;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    width: 220px;
    font-size: 14px;
}

.whatsapp-popup p {
    margin: 0 0 10px;
}

.whatsapp-popup a {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* Spreadsheet Embed */
.spreadsheet-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spreadsheet-container iframe {
    border: 0;
    width: 95%;
    max-width: 1100px;
    height: 730px;
}

.iframe-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 60%; /* Adjust this for aspect ratio (60% ~ 16:10 ratio) */
  overflow: hidden;
  border-radius: 10px;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

